18. Simulate Sarah's Changes
Simulate Sarah's Changes
Question:
Simulate Sarah's Changes
In the Downloadables section, there is a file called sarah_changes.sh
, which contains code to make it look like Sarah has modified your fork on GitHub. To run the code, download the file, then using Git Bash or your terminal, cd
to the directory where you've saved it. Then type bash sarah_changes.sh
followed by a space, followed by the url to your fork. For example, if Caroline were running the code, she would type bash sarah_changes.sh https://github.com/cbuckey-uda/recipes.git
, but you should use the url for your fork, not Caroline's fork. If you haven't set up password caching, then you will be prompted to enter your GitHub username and password.
Start Quiz:

Solution:
Which commits exist where?
The commit by Larry adding the chili recipe should have been in both places, since it was present in the original repository before you forked it. Your commit adding a new spice should only have been present locally, since you made the commit locally but didn't push. The commit by Sarah removing cumin should only have been present on GitHub, since Sarah made the change and pushed it to GitHub, but you didn't pull yet.
INSTRUCTOR NOTE:
You can download sarah_changes.sh
here.